﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>物料分类设置</title>
    <link rel="stylesheet" type="text/css" href="/admin/EasyUi/themes/default/easyui.css?v=@ViewBag.CssVersion" />
    <link rel="stylesheet" type="text/css" href="/admin/EasyUi/themes/icon.css?v=@ViewBag.CssVersion" />

    <script type="text/javascript" src="/admin/Common/Scripts/jquery-1.12.0.min.js?v=@ViewBag.JsVersion"></script>
    <script type="text/javascript" src="/admin/EasyUi/jquery.easyui.min.js?v=@ViewBag.JsVersion"></script>
    <script type="text/javascript" src="/admin/EasyUi/locale/easyui-lang-zh_CN.js?v=@ViewBag.JsVersion"></script>
    <script type="text/javascript" src="/admin/Common/Scripts/Utils.js?v=@ViewBag.JsVersion"></script>
    <script type="text/javascript">
        //** iframe自动适应页面 **//

        //输入你希望根据页面高度自动调整高度的iframe的名称的列表
        //用逗号把每个iframe的ID分隔. 例如: ["myframe1", "myframe2"]，可以只有一个窗体，则不用逗号。

        //定义iframe的ID
        var iframeids = ["childFrame"]

        //如果用户的浏览器不支持iframe是否将iframe隐藏 yes 表示隐藏，no表示不隐藏
        var iframehide = "yes"

        function dyniframesize() {
            var dyniframe = new Array()
            for (i = 0; i < iframeids.length; i++) {
                if (document.getElementById) {
                    //自动调整iframe高度
                    dyniframe[dyniframe.length] = document.getElementById(iframeids[i]);
                    if (dyniframe[i] && !window.opera) {
                        dyniframe[i].style.display = "block"
                        if (dyniframe[i].contentDocument && dyniframe[i].contentDocument.body.scrollHeight) //如果用户的浏览器是NetScape
                        {
                            dyniframe[i].height = dyniframe[i].contentDocument.body.scrollHeight+70;
                        }
                        else if (dyniframe[i].Document && dyniframe[i].Document.body.scrollHeight) //如果用户的浏览器是IE
                        {
                            dyniframe[i].height = dyniframe[i].Document.body.scrollHeight+70;
                        }
                    }
                }
                //根据设定的参数来处理不支持iframe的浏览器的显示问题
                if ((document.all || document.getElementById) && iframehide == "no") {
                    var tempobj = document.all ? document.all[iframeids[i]] : document.getElementById(iframeids[i])
                    tempobj.style.display = "block"
                }
            }
        }

        if (window.addEventListener)
            window.addEventListener("load", dyniframesize, false);
        else if (window.attachEvent)
            window.attachEvent("onload", dyniframesize);
        else
            window.onload = dyniframesize;



        //-->
    </script>

</head>
<body>
    

    <table style="width: 100%; border: solid 0px;" cellpadding="8" cellspacing="5">

        <tr>
            <td style="width: 220px; vertical-align: top;border: solid 1px;">
                <iframe id="leftFrame" name="leftFrame" src="CatalogLeft?catalogId=0" frameborder="0" width="100%" height="800"></iframe>
            </td>
            <td style="background-color: #ffffff; vertical-align: top;border: solid 1px;">
                <iframe id="childFrame" name="childFrame" onload="dyniframesize();" src="CatalogEdit?operation=add&parentId=0&catalogId=0" frameborder="0" width="100%" height="650"></iframe>
            </td>
        </tr>
    </table>

</body>
</html>
